<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="main">
        <img id = "proImg" style="width: 95%;height: 72%">
    </div>
</body>
<script>
    window.onload=function () {
        let url = location.search;
        let fileName = url.substr(url.indexOf("=")+1,url.length);
        let proImg = document.getElementById("proImg");
        proImg.setAttribute("src","proc/getData?fileName=" + fileName);
    }
</script>
</html>